package edu.sctu.practice.class02.shilaihong.assign03.text1;

/**
 * Created by admin on 2015/10/22.
 */
public abstract class GeometricObject {
    protected String color;
    protected double weight;
    public boolean Area;

    protected GeometricObject() {
        color = "blue";
        weight = 2.0;
    }

    protected GeometricObject(String color) {
        this.color = color;
        this.weight = weight;
    }

    public void setcolor(String color) {
        this.color = color;
    }

    public String getcolor() {
        return color;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public double getWeight() {
        return weight;
    }

    public abstract double findArea();

    public abstract double findPerimeter();

}
